package com.ksl.kinglockguard.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.ksl.kinglockguard.network.NetworkTask;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		/*context.startService(new Intent(context, ScreenLockService.class));
		long lastUploadBootstat = SharePreferenceSdkData.getLastUploadBootstat(context);
		long now = System.currentTimeMillis();
		String lastDate = StringUtils.formatDate(lastUploadBootstat, "yyyy-MM-dd");
		String today = StringUtils.formatDate(now, "yyyy-MM-dd");
		if(now - lastUploadBootstat >6*60*60*1000 && !lastDate.equals(today)){
			NetworkUtil.requestLanuchMyApp(context);
		}*/
		NetworkTask.uploadUserCount(context);
		NetworkTask.onlineRequestCountData(context.getApplicationContext(), false);
	}
}
